namespace Baula.TextGen.ActiveTemplating.Tokenizer.Tokens
{
    public class EofToken : IToken
    {
        public override string ToString()
        {
            return "<EOF>";
        }

        public bool Equals(EofToken other)
        {
            return !ReferenceEquals(null, other);
        }

        public override bool Equals(object obj)
        {
            if (ReferenceEquals(null, obj))
            {
                return false;
            }
            if (ReferenceEquals(this, obj))
            {
                return true;
            }
            if (obj.GetType() != typeof (EofToken))
            {
                return false;
            }
            return Equals((EofToken) obj);
        }

        public override int GetHashCode()
        {
            return 0;
        }
    }
}